<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/create',
    'namespace' => 'Frieza\\Modules\\Create\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('official/index/create', 'OfficialController@create');
    $router->get('official/index/{id}/edit', 'OfficialController@create');
    $router->post('official/save', 'OfficialController@save');
    $router->get('official/index', 'OfficialController@index');
    $router->post('official/sort', 'OfficialController@sort');
    $router->delete('official/index/{id}', 'OfficialController@del');//删除话题
});
